﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SMS.DAL.Providers
{
    public class RoleProvider : ProviderBase<Role,RoleSearchCriteria>
    {
        public override void Insert(Role item)
        {
            Context.Roles.AddObject(item);
            Context.SaveChanges();
        }

        public override void Update(Role updatedItem)
        {
            throw new NotImplementedException();
        }

        public override void Delete(int id)
        {
            throw new NotImplementedException();
        }

        public override Role GetByID(int id)
        {
            throw new NotImplementedException();
        }

        public override List<Role> Search(RoleSearchCriteria SearchCriteria)
        {
            return Context.Roles.ToList();
        }
    }
}
